﻿using Ids4Review.AuthorizationServer.Data.Core;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Ids4Review.AuthorizationServer.Data
{
    public class UserContext
        :IdentityDbContext<ApplicationUser,ApplicationUserRole,int>
    {
        public UserContext(DbContextOptions<UserContext> options)
            :base(options)
        { }
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);
        }
        public virtual ApplicationUser User { get; set; }

        public virtual ApplicationUserRole Role { get; set; }
    }
}
